package com.gistmap.service;

import com.gistmap.bean.Article;
import com.gistmap.dto.ArticleDto;
import com.gistmap.dto.ArticleIndexDto;
import com.gistmap.util.Pager;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/4/7.
 */
public interface ArticleService {

    void save(Article article);

    Pager<ArticleIndexDto> randomGet(Map map);

    Pager<Article> getByPage(Map map) ;

    ArticleDto get(String aid);

    Integer getArtCount(Integer id);

    List<ArticleIndexDto> randomMain();
}
